package com.buybuyyi.stylistcrm.resource.goods.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.buybuyyi.stylistcrm.resource.goods.dao.DicMaterialCottonDao;
import com.buybuyyi.stylistcrm.resource.goods.mapper.DicMaterialCottonMapper;
import com.buybuyyi.stylistcrm.resource.goods.po.DicMaterialCotton;

@Repository
public class DicMaterialCottonDaoImpl implements  DicMaterialCottonDao {

	@Autowired
	private DicMaterialCottonMapper dicMaterialCottonMapper;

	@Override
	public Long deleteByPrimaryKey(Long id) {
		return dicMaterialCottonMapper.deleteByPrimaryKey(id);
	}

	@Override
	public Long insert(DicMaterialCotton record) {
		return dicMaterialCottonMapper.insert(record);
	}

	@Override
	public Long insertSelective(DicMaterialCotton record) {
		return dicMaterialCottonMapper.insertSelective(record);
	}

	@Override
	public DicMaterialCotton selectByPrimaryKey(Long id) {
		return dicMaterialCottonMapper.selectByPrimaryKey(id);
	}

	@Override
	public Long updateByPrimaryKeySelective(DicMaterialCotton record) {
		return dicMaterialCottonMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Long updateByPrimaryKey(DicMaterialCotton record) {
		return dicMaterialCottonMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<DicMaterialCotton> getAllDicMaterialCotton() {
		return dicMaterialCottonMapper.getAllDicMaterialCotton();
	}
	
	
}